import 'package:bmi_cal/components/result_page.dart';
import 'package:flutter/material.dart';
import 'input_page.dart';
import 'package:bmi_cal/input_page.dart';

void main() {
  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData.dark().copyWith(
        primaryColor: Color(0xFF0A0E21),
        scaffoldBackgroundColor: Color(0xFF0A0E21),
        appBarTheme: AppBarTheme(backgroundColor: Color(0xFF0A0E21), centerTitle: true)
      ),
      // home: InputPage(),
      routes: {
          "/":(context) => InputPage(),
        "/result":(context) => ResultPage(),
      }
    );
  }
}
